package branch;

public class IfDemo1 {
    public static void main(String[] args) {
        iftest();
    }
    public static void iftest(){
        int age = 10;
      if (age > 18)
        {
            System.out.println("可以上网");
        }
        System.out.println("洗洗睡吧！");
    }

}
